package com.lovo.sheyingback.dao;

import com.lovo.sheyingback.bean.Function;
import com.lovo.sheyingback.bean.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author BDK-THINKPAD
* @description 针对表【t_function(功能表)】的数据库操作Mapper
* @createDate 2023-07-24 21:39:14
* @Entity com.lovo.sheyingback.bean.Function
*/
@Repository
public interface FunctionMapper {
    List<Function> listFunction();
    List<Function> listFunctionByUserId(Integer userId);
    List<Function> listFunctionByRoleId(Integer roleId);
    Function getById(Integer id);
    int insert(Function function);
    int update(Function function);
    int delete(Integer id);
    int deleteFunctionUser(Integer id);
    int deleteFunctionRole(Integer id);
}




